fixed column resize bug
authorLars Hamann <lars@gtk.org>
Mon, 21 Dec 1998 21:09:37 +0000 (21:09 +0000)
committerLars Hamann <lars@src.gnome.org>
Mon, 21 Dec 1998 21:09:37 +0000 (21:09 +0000)
Mon Dec 21 22:01:49 1998  Lars Hamann  <lars@gtk.org>

* gtk/gtkclist.c (gtk_clist_motion): fixed column resize bug

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkclist.c

index 67fc780411e43588b7a7c846ce27b89687a9e7cb..bc0506d0f36a31c03b8e326b7f705a6ad4f03468 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Dec 21 22:01:49 1998  Lars Hamann  <lars@gtk.org>
+
+       * gtk/gtkclist.c (gtk_clist_motion): fixed column resize bug
+
 Sun Dec 20 04:48:59 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.h (GDK_PRIORITY_EVENTS): export the priority at which
index 67fc780411e43588b7a7c846ce27b89687a9e7cb..bc0506d0f36a31c03b8e326b7f705a6ad4f03468 100644 (file)
@@ -1,3 +1,7 @@
+Mon Dec 21 22:01:49 1998  Lars Hamann  <lars@gtk.org>
+
+       * gtk/gtkclist.c (gtk_clist_motion): fixed column resize bug
+
 Sun Dec 20 04:48:59 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.h (GDK_PRIORITY_EVENTS): export the priority at which
index 67fc780411e43588b7a7c846ce27b89687a9e7cb..bc0506d0f36a31c03b8e326b7f705a6ad4f03468 100644 (file)
@@ -1,3 +1,7 @@
+Mon Dec 21 22:01:49 1998  Lars Hamann  <lars@gtk.org>
+
+       * gtk/gtkclist.c (gtk_clist_motion): fixed column resize bug
+
 Sun Dec 20 04:48:59 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.h (GDK_PRIORITY_EVENTS): export the priority at which
index 67fc780411e43588b7a7c846ce27b89687a9e7cb..bc0506d0f36a31c03b8e326b7f705a6ad4f03468 100644 (file)
@@ -1,3 +1,7 @@
+Mon Dec 21 22:01:49 1998  Lars Hamann  <lars@gtk.org>
+
+       * gtk/gtkclist.c (gtk_clist_motion): fixed column resize bug
+
 Sun Dec 20 04:48:59 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.h (GDK_PRIORITY_EVENTS): export the priority at which
index 67fc780411e43588b7a7c846ce27b89687a9e7cb..bc0506d0f36a31c03b8e326b7f705a6ad4f03468 100644 (file)
@@ -1,3 +1,7 @@
+Mon Dec 21 22:01:49 1998  Lars Hamann  <lars@gtk.org>
+
+       * gtk/gtkclist.c (gtk_clist_motion): fixed column resize bug
+
 Sun Dec 20 04:48:59 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.h (GDK_PRIORITY_EVENTS): export the priority at which
index 67fc780411e43588b7a7c846ce27b89687a9e7cb..bc0506d0f36a31c03b8e326b7f705a6ad4f03468 100644 (file)
@@ -1,3 +1,7 @@
+Mon Dec 21 22:01:49 1998  Lars Hamann  <lars@gtk.org>
+
+       * gtk/gtkclist.c (gtk_clist_motion): fixed column resize bug
+
 Sun Dec 20 04:48:59 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.h (GDK_PRIORITY_EVENTS): export the priority at which
index 67fc780411e43588b7a7c846ce27b89687a9e7cb..bc0506d0f36a31c03b8e326b7f705a6ad4f03468 100644 (file)
@@ -1,3 +1,7 @@
+Mon Dec 21 22:01:49 1998  Lars Hamann  <lars@gtk.org>
+
+       * gtk/gtkclist.c (gtk_clist_motion): fixed column resize bug
+
 Sun Dec 20 04:48:59 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.h (GDK_PRIORITY_EVENTS): export the priority at which
index 335714b6f71876e914c95e63eec549ccaf4eb83e..897bc34b9b8457009e1ea0378ca4fbf9351e40c6 100644 (file)
@@ -5130,17 +5130,17 @@ gtk_clist_motion (GtkWidget      *widget,
   gint y;
   gint row;
   gint new_width;
-  gint button_actions;
+  gint button_actions = 0;
 
   g_return_val_if_fail (widget != NULL, FALSE);
   g_return_val_if_fail (GTK_IS_CLIST (widget), FALSE);
 
   clist = GTK_CLIST (widget);
-  if (!(gdk_pointer_is_grabbed () && GTK_WIDGET_HAS_GRAB (clist)) ||
-      !clist->drag_button)
+  if (!(gdk_pointer_is_grabbed () && GTK_WIDGET_HAS_GRAB (clist)))
     return FALSE;
 
-  button_actions = clist->button_actions[clist->drag_button - 1];
+  if (clist->drag_button > 0)
+    button_actions = clist->button_actions[clist->drag_button - 1];
 
   if (GTK_CLIST_IN_DRAG(clist))
     {